370 IR = FNIROW(POKEPOS): IC = FNICOL(POKEPOS): LOCATE IR, IC: RETURN
380 FOR II = 0 TO 2: PRINT G1(II); : NEXT: RETURN
390 CLOSE : M = M - 1: PRINT : PRINT : PRINT "Do Lower Case conversions? "; : GOSUB 360: IF E = "N" OR E = "n" THEN Y = 0 ELSE Y = 1
400 CLOSE : CLS : K = 0: FOR I = 1 TO M: PRINT I; " "; : BQUOTE = G: IF N1(I) = 3 THEN BQUOTE = ""
405 PRINT BQUOTE; : FOR J = 1 TO N(I): PRINT B(J + K); : NEXT J: PRINT BQUOTE; : IF Y = 1 THEN PRINT ELSE GOTO 420
410 PRINT "Convert? "; : GOSUB 360: PRINT E; : IF E = "Y" OR E = "y" THEN N1(I) = N1(I) * 10
420 K = K + N(I): PRINT : NEXT I: LOCATE 24, 1: PRINT "Hit any key to convert or '\' to restart"; : GOSUB 360: IF E = "\" THEN CLOSE : GOTO 665
425 IF E = "n" OR E = "N" OR E = "y" OR E = "Y" THEN GOSUB 360
430 LOCATE 22, 30: PRINT "CONVERTING...";
440 OPEN "I", 1, FI: OPEN "O", 2, FIOUT
450 WHILE NOT EOF(1): LINE INPUT #1, A
460 IF LEN(A) < 5 THEN 450
470 LOCATE 22, 44: LK = LK + 1: PRINT LK
480 K = 1: FOR I = 1 TO M:
490 AX = MID$(A, K, N(I))
500 IF N1(I) > 3 THEN GOSUB 590
510 IF (N1(I) = 1 OR N1(I) = 10) THEN PRINT #2, G; AX; G; : GOTO 550
520 IF (N1(I) = 3 OR N1(I) = 30) THEN PRINT #2, AX; : GOTO 550
530 NP = INSTR(AX, ","): AY = LEFT$(AX, NP - 1): AZ = RIGHT$(AX, N(I) - NP)
540 PRINT #2, G; AY; G2; AZ; G;
550 IF I < M THEN PRINT #2, ",";
560 K = K + N(I): NEXT I: PRINT #2, ""
570 WEND
580 CLOSE : PRINT : PRINT : PRINT : END
590 P = 1: FOR II = 1 TO LEN(AX): DD = MID$(AX, II, 1)
600 IF ((DD < "A" OR DD > "Z") AND (DD < "0" OR DD > "9")) THEN P = 1: GOTO 630
610 IF P = 1 THEN P = 0: GOTO 630
615 IF DD >= "0" AND DD <= "9" THEN 630
620 MID$(AX, II, 1) = CHR$(ASC(DD) + 32)
630 NEXT II
640 RETURN
650 CLS : LOCATE 3, 34: COLOR 28: PRINT "Q"; : COLOR ZFOR: PRINT "uick "; : COLOR 28: PRINT "A"; : COLOR ZFOR: PRINT "nd "; : COLOR 28: PRINT "D"; : COLOR ZFOR: PRINT "irty":
655 LOCATE 5, 24: PRINT "ASCII to FORMATTED file Converter": LOCATE 6, 32: PRINT "Kluged by Ken Gash"
660 RETURN
665 CLS : PRINT "Your input file is ---> "; : COLOR 28, 0: PRINT FI: COLOR ZFOR, ZBAK, 1: PRINT " If OK, hit <ENTER> else type in new pathname. ";
670 LINE INPUT AFILE: IF LEN(AFILE) <> 0 THEN FI = AFILE
675 PRINT : PRINT "Your output file is ---> "; : COLOR 28, 0: PRINT FIOUT: COLOR ZFOR, ZBAK, 1: PRINT " If OK, hit <ENTER> else type in new pathname. ";
680 LINE INPUT AFILE: IF LEN(AFILE) <> 0 THEN FIOUT = AFILE
685 PRINT : PRINT "Hit <ENTER> to continue or '\' to restart": GOSUB 360: IF E = "\" THEN 665 ELSE GOTO 130